import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';

// components
import { AppComponent } from './app.component';
import { PageNotFoundComponent } from './modules/extra/page-not-found/page-not-found.component';

// modules
import { LoginModule } from './modules/login/login.module';
import { MainModule } from './modules/main/main.module';

// router
import { AppRoutingModule } from './app-routing.module';

// services
import { StorageService } from './core/services/storage.service';
import { ConstantService } from './core/services/constant.service';
import { ServerService } from './core/services/server.service';
import { AuthService } from './core/services/auth.service';
import { AuthGuardService } from './core/services/auth-guard.service';

@NgModule({
    declarations: [
        AppComponent,
        PageNotFoundComponent
    ],
    imports: [
        BrowserModule,
        HttpModule,
        LoginModule,
        MainModule,
        AppRoutingModule
    ],
    providers: [
        StorageService,
        ConstantService,
        ServerService,
        AuthService,
        AuthGuardService
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
